package cn.lls.base.util;

import java.text.SimpleDateFormat;

/**
 * 日期格式化工具类
 *
 * @ClassName DateUtil
 * @Author 划水艺术家
 * @Date 2022/11/29 16:10
 * @Version 1.0
 **/
public class DateUtil {

    private static  SimpleDateFormat sdfDate = null;

    static {
        sdfDate = new SimpleDateFormat("yyyy-MM-dd");
    }

    public static String timestampToDateString(String time){
        System.out.println("timestampToDateString = " +  time);
        return sdfDate.format(time);
    }

}
